/* 地址选择组件样式 */
.address-selector {
  width: 100%;
}

/* 地址显示区域 */
.address-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  min-height: 44px;
  transition: all 0.3s ease;
  
  &:active {
    background: #e9ecef;
  }
}

.address-content {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
}

.location-icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  opacity: 0.6;
}

.address-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.address-text {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  word-break: break-all;
  
  &.placeholder {
    color: #999;
  }
}

.coordinate-text {
  font-size: 12px;
  color: #666;
  font-family: 'Courier New', monospace;
}

.arrow-icon {
  width: 16px;
  height: 16px;
  opacity: 0.4;
}

/* 操作按钮区域 */
.action-buttons {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  border: 1px solid #ddd;
  background: white;
  color: #666;
  
  image {
    width: 14px;
    height: 14px;
  }
  
  &.view-btn {
    border-color: #007aff;
    color: #007aff;
    
    &:active {
      background: #007aff;
      color: white;
    }
  }
  
  &.reselect-btn {
    border-color: #5cb85c;
    color: #5cb85c;
    
    &:active {
      background: #5cb85c;
      color: white;
    }
  }
  
  &.current-btn {
    border-color: #ff9500;
    color: #ff9500;
    
    &:active {
      background: #ff9500;
      color: white;
    }
  }
}

/* 响应式设计 */
@media (max-width: 375px) {
  .action-buttons {
    .action-btn {
      flex: 1;
      justify-content: center;
      min-width: 0;
    }
  }
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
  .address-display {
    background: #2c2c2e;
    border-color: #48484a;
  }
  
  .address-text {
    color: #ffffff;
    
    &.placeholder {
      color: #8e8e93;
    }
  }
  
  .coordinate-text {
    color: #8e8e93;
  }
  
  .action-btn {
    background: #2c2c2e;
    border-color: #48484a;
    color: #ffffff;
  }
}


